package com.create.singleton;
/**
 * 懒汉式（双重检查）[推荐用]
 * @author LIUZENGLONG
 *
 */
public class Singleton6 {
	private static volatile Singleton6 instance;
	private Singleton6() {}
	public static Singleton6 getInstance() {
		if (instance == null) {
			synchronized (Singleton6.class) {
				if (instance == null) {
					instance = new Singleton6();
				}
			}
		}
		return instance;
	}
}